/* =========================================
   LK PORTFOLIO - COMPLETE STYLESHEET
========================================= */

:root {
  --forest: #183d30;
  --forest-dark: #102b22;
  --forest-light: #285642;
  --sage: #a7bda5;
  --sage-light: #dce6d8;
  --cream: #f8f6ef;
  --cream-dark: #efede3;
  --white: #ffffff;
  --text: #20372d;
  --muted: #778078;
  --border: rgba(24, 61, 48, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(24, 61, 48, 0.09);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

em {
  color: var(--forest-light);
  font-family: var(--serif);
  font-weight: 500;
}

/* =========================================
   HEADER AND LOGO
========================================= */

.header {
  background: rgba(248, 246, 239, 0.95);
  border-bottom: 1px solid rgba(24, 61, 48, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.brand-mark {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--white);
  border-radius: 17px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: background var(--transition), transform var(--transition);
}

.brand-name {
  color: var(--forest);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
  transition: color var(--transition);
}

.brand-period {
  color: #8aa58a;
}

.brand-logo:hover .brand-mark {
  background: var(--forest-light);
  transform: translateY(-2px);
}

.brand-logo:hover .brand-name {
  color: var(--forest-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  color: #667068;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -8px;
  background: var(--forest-light);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--forest);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 19px;
  background: var(--forest);
  color: var(--white);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
}

.nav-cta span {
  font-size: 16px;
}

/* Hamburger menu - no animation */

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 5px;
}

/* Remove hamburger animation */

.menu-toggle.open span:first-child,
.menu-toggle.open span:nth-child(2),
.menu-toggle.open span:last-child {
  opacity: 1;
  transform: none;
}

/* =========================================
   BUTTONS
========================================= */

.button {
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 13px 22px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.button span {
  font-size: 17px;
  transition: transform var(--transition);
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover span {
  transform: translate(3px, -2px);
}

.button-primary {
  background: var(--forest);
  color: var(--white);
}

.button-primary:hover {
  background: var(--forest-light);
  box-shadow: 0 10px 25px rgba(24, 61, 48, 0.18);
}

.button-outline {
  color: var(--forest);
  border-color: var(--border);
  background: transparent;
}

.button-outline:hover {
  background: var(--sage-light);
  border-color: var(--sage);
}

.button-light {
  background: var(--cream);
  color: var(--forest);
}

.button-light:hover {
  background: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* =========================================
   SHARED SECTION STYLES
========================================= */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #758579;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #769c75;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(118, 156, 117, 0.13);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(118, 156, 117, 0.13);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(118, 156, 117, 0.04);
  }
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 45px;
  margin-bottom: 50px;
}

.section-heading h2,
.about-content h2,
.contact-info h2 {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.heading-ampersand {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
}

.section-heading .eyebrow,
.about-content .eyebrow,
.contact-info .eyebrow {
  margin-bottom: 15px;
}

.heading-description {
  max-width: 350px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  padding-bottom: 4px;
}

/* =========================================
   HOME / HERO
========================================= */

.hero {
  padding-top: 85px;
  padding-bottom: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 92% 18%, rgba(220, 230, 216, 0.65), transparent 31%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 70px;
  min-height: 490px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 26px;
}

.accent-text {
  color: #89a489;
}

.hero h1 em {
  color: #789478;
}

.hero-description {
  color: #727a72;
  font-size: 14px;
  line-height: 1.95;
  max-width: 490px;
  margin-bottom: 29px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 35px;
}

.hero-skills span,
.about-tags span {
  color: #68776b;
  border: 1px solid rgba(24, 61, 48, 0.13);
  background: rgba(255, 255, 255, 0.42);
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  padding: 20px 14px 30px 25px;
}

.hero-image-frame {
  position: relative;
  height: 440px;
  border-radius: 190px 190px 18px 18px;
  overflow: hidden;
  background: var(--sage-light);
  z-index: 1;
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 43, 34, 0.25));
  pointer-events: none;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.04);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 61, 48, 0.07);
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.floating-card-top {
  top: 66px;
  left: -15px;
}

.floating-card-bottom {
  right: -15px;
  bottom: 62px;
  animation-delay: -2.5s;
}

.floating-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--sage-light);
  color: var(--forest);
  border-radius: 10px;
  font-size: 20px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  color: var(--forest);
  font-size: 11px;
}

.floating-card small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(117, 148, 120, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 145px;
  height: 145px;
  top: -12px;
  right: -22px;
}

.orbit-two {
  width: 82px;
  height: 82px;
  bottom: -2px;
  left: -5px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 23px;
}

.hero-bottom p {
  color: #7c867b;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
}

.hero-bottom p span {
  color: #9aaf97;
  padding: 0 8px;
}

.scroll-link {
  color: var(--forest);
  font-size: 11px;
  font-weight: 600;
}

.scroll-link span {
  margin-left: 10px;
  font-size: 17px;
}

/* =========================================
   SERVICE
========================================= */

.service-section {
  background: #f1f1e9;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.service-card {
  padding: 28px 26px 26px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 61, 48, 0.07);
  border-radius: 13px;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.service-card:hover {
  transform: translateY(-7px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--sage-light);
  color: var(--forest);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 25px;
}

.card-number {
  color: #89958a;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 9px;
}

.service-card h3 {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 22px;
}

.text-link {
  margin-top: auto;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.service-card-featured {
  background: var(--forest);
}

.service-card-featured:hover {
  background: var(--forest-light);
}

.service-card-featured .service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sage-light);
}

.service-card-featured .card-number {
  color: #b7c9b4;
}

.service-card-featured h3,
.service-card-featured .text-link {
  color: var(--white);
}

.service-card-featured p {
  color: #c3d0c4;
}

/* =========================================
   WORK / PROJECTS
========================================= */

.work-section {
  background: var(--cream);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
}

.project-card {
  min-width: 0;
  transition: transform var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  height: 280px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--sage-light);
}

.project-large .project-image {
  height: 280px;
}

.project-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Portfolio preview */

.project-image-portfolio {
  background: linear-gradient(140deg, #dce5d7, #a9c0a6);
}

.mock-browser {
  width: 72%;
  max-width: 400px;
  height: 76%;
  border-radius: 10px;
  background: #faf9f4;
  box-shadow: 0 20px 45px rgba(24, 61, 48, 0.15);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.project-card:hover .mock-browser {
  transform: rotate(0) scale(1.03);
}

.browser-bar {
  height: 28px;
  background: #e7ebe1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
}

.browser-bar i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: #9caf98;
}

.mock-content {
  padding: 34px 25px;
}

.mock-line {
  height: 9px;
  border-radius: 5px;
  margin-bottom: 12px;
  background: #d3ddce;
}

.mock-line.short {
  width: 30%;
  background: #8ca68a;
}

.mock-line.long {
  width: 90%;
  height: 19px;
  background: #294e3d;
}

.mock-line.medium {
  width: 65%;
}

.mock-button {
  width: 80px;
  height: 22px;
  background: #294e3d;
  border-radius: 4px;
  margin-top: 23px;
}

/* Shop preview */

.project-image-shop {
  background: linear-gradient(145deg, #e7d9c3, #c1a98a);
}

.shop-window {
  width: 76%;
  padding: 22px;
  border-radius: 9px;
  background: #faf5e9;
  box-shadow: 0 18px 35px rgba(83, 60, 36, 0.17);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.project-card:hover .shop-window {
  transform: rotate(0) scale(1.03);
}

.shop-top {
  font-family: var(--serif);
  color: #4d382b;
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4d7c3;
}

.shop-top span {
  color: #b1845d;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding-top: 18px;
}

.shop-product {
  text-align: center;
}

.shop-product span {
  display: grid;
  place-items: center;
  height: 75px;
  background: #e5d5bd;
  border-radius: 6px;
  font-size: 35px;
  color: #84674c;
  margin-bottom: 8px;
}

.shop-product small {
  font-size: 8px;
  color: #715c48;
}

/* Schedule preview */

.project-image-schedule {
  background: linear-gradient(145deg, #d3e0d1, #b3c8b0);
}

.schedule-window {
  width: 73%;
  background: #f9f8f1;
  padding: 20px;
  border-radius: 9px;
  box-shadow: 0 18px 35px rgba(24, 61, 48, 0.12);
  transition: transform 0.5s ease;
}

.project-card:hover .schedule-window {
  transform: scale(1.04);
}

.schedule-heading {
  font-family: var(--serif);
  color: var(--forest);
  font-size: 16px;
  margin-bottom: 13px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr;
  gap: 7px;
  align-items: center;
  margin: 9px 0;
}

.schedule-row span {
  font-size: 8px;
  color: #788779;
  font-weight: 700;
}

.schedule-row i {
  height: 12px;
  background: #dce7d7;
  border-radius: 3px;
}

.schedule-row:nth-child(odd) i:first-of-type {
  background: #8fad8a;
}

/* Code preview */

.project-image-code {
  background: linear-gradient(145deg, #203f32, #101f19);
}

.code-window {
  width: 73%;
  background: #172a21;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  padding: 20px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.5s ease;
}

.project-card:hover .code-window {
  transform: scale(1.04);
}

.code-heading {
  color: #b7c8b1;
  font-size: 10px;
  padding-bottom: 13px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.code-window p {
  color: #dce7d7;
  font-family: monospace;
  font-size: 11px;
  line-height: 2.1;
}

.code-window p span {
  color: #6f8c73;
  margin-right: 12px;
}

.code-window p b {
  color: #9bc69a;
}

.code-window p em {
  color: #e5c997;
  font-family: monospace;
}

/* Project details */

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding: 19px 2px 12px;
}

.project-info h3 {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.project-info p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}

.project-view-label {
  align-self: center;
  margin-left: auto;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition), transform var(--transition);
}

.project-view-label:hover {
  color: var(--forest-light);
  transform: translateY(-2px);
}

.project-view-label:active {
  color: var(--forest-light);
  transform: scale(0.96);
}

.project-view-label:focus-visible {
  outline: 2px solid var(--forest-light);
  outline-offset: 4px;
  border-radius: 2px;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--forest);
  font-size: 17px;
  transition: background var(--transition), color var(--transition);
}

.project-card:hover .project-arrow {
  background: var(--forest);
  color: var(--white);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tech span {
  background: #eeeee6;
  color: #758074;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.project-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  margin-top: 15px;
  padding: 9px 13px;
  background: #e7efe5;
  border: 1px solid rgba(24, 61, 48, 0.1);
  border-radius: 999px;
}

.project-note .status-dot {
  flex: 0 0 7px;
  margin-left: 1px;
}

/* =========================================
   ABOUT SECTION
   NO PROFILE PICTURE
========================================= */

.about-section {
  background: #eef0e8;
}

.about-grid-text-only {
  display: block;
  max-width: 850px;
  margin: 0 auto;
}

.about-grid-text-only .about-content {
  width: 100%;
}

.about-content h2 {
  margin-bottom: 25px;
}

.about-content > p:not(.eyebrow) {
  color: #778078;
  font-size: 12px;
  line-height: 2;
  margin-bottom: 15px;
  max-width: 760px;
}

.about-content .about-lead {
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
}

/* Skills heading */

.about-subheading {
  margin: 35px 0 18px;
}

.about-subheading h3 {
  color: var(--forest);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

/* Minimalist skills list */

.skills-list {
  width: 100%;
  border-left: 1px solid #d5d1c9;
  border-top: 1px solid #d5d1c9;
}

.skill-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 13px 28px;
  border-bottom: 1px solid #d5d1c9;
  border-right: 1px solid #d5d1c9;
  background: #f0ede7;
  color: #77746e;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  transition: background 0.25s ease,
              color 0.25s ease,
              padding-left 0.25s ease;
}



.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.about-tags span {
  background: rgba(255, 255, 255, 0.45);
}

/* =========================================
   CONTACT BANNER
========================================= */

.contact-section {
  background: var(--cream);
}

.contact-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 25px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 85% 20%, rgba(125, 159, 126, 0.23), transparent 27%),
    var(--forest);
  color: var(--white);
  margin-bottom: 100px;
}

.contact-banner .eyebrow {
  justify-content: center;
  color: #b7c8b4;
}

.contact-banner h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.contact-banner h2 em {
  color: #b7c9b1;
}

.contact-banner-text {
  position: relative;
  z-index: 1;
  max-width: 450px;
  color: #c8d4c9;
  font-size: 12px;
  line-height: 1.9;
  margin: 0 auto 26px;
}

.contact-banner .button {
  position: relative;
  z-index: 1;
}

.contact-banner-decoration {
  position: absolute;
  top: -80px;
  right: 5%;
  color: rgba(255, 255, 255, 0.06);
  font-size: 270px;
  line-height: 1;
}

/* =========================================
   CONTACT DETAILS AND FORM
========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 22px;
}

.contact-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin-bottom: 30px;
  max-width: 400px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}

a.contact-detail:hover {
  padding-left: 7px;
}

.detail-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 19px;
}

.contact-detail > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.contact-detail small {
  color: #89938a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.contact-detail strong {
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.detail-arrow {
  margin-left: auto;
  color: var(--forest);
  font-size: 17px;
  transition: transform var(--transition);
}

a.contact-detail:hover .detail-arrow {
  transform: translate(3px, -3px);
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 30px;
}

.social-links > span {
  color: #89938a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.social-links a {
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  transition: color var(--transition);
}

.social-links a:hover {
  color: #8ba78a;
}

.social-note {
  margin-top: 12px;
  color: #89938a;
  font-size: 10px;
}

.contact-form {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.form-intro {
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
}

.form-group label {
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid rgba(24, 61, 48, 0.13);
  border-radius: 6px;
  background: #fbfaf6;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  font-size: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a4aaa2;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #789778;
  box-shadow: 0 0 0 3px rgba(120, 151, 120, 0.12);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  border: 0;
}

.form-note {
  color: #879087;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 13px;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: #eaece3;
  padding: 30px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 26px;
}

.footer-brand .brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  font-size: 15px;
}

.footer-brand .brand-name {
  font-size: 22px;
}

.footer-inner > p {
  color: #7d867d;
  font-size: 11px;
}

.back-top {
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  transition: transform var(--transition);
}

.back-top:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  color: #899189;
  font-size: 9px;
  letter-spacing: 0.5px;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2),
.project-card:nth-child(2) {
  transition-delay: 0.08s;
}

.service-card:nth-child(3),
.project-card:nth-child(3) {
  transition-delay: 0.16s;
}

.service-card:nth-child(4) {
  transition-delay: 0.05s;
}

.service-card:nth-child(5) {
  transition-delay: 0.12s;
}

.service-card:nth-child(6) {
  transition-delay: 0.19s;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1000px) {
  .container {
    width: min(calc(100% - 48px), 850px);
  }

  .navbar {
    gap: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .brand-logo {
    gap: 11px;
  }

  .brand-mark {
    width: 47px;
    height: 47px;
    border-radius: 15px;
  }

  .brand-name {
    font-size: 23px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(44px, 6vw, 62px);
  }

  .hero-image-frame {
    height: 390px;
  }

  .about-grid-text-only {
    max-width: 800px;
  }

  .contact-grid {
    gap: 45px;
  }

  .service-card {
    padding: 23px 20px;
  }
}

/* =========================================
   MOBILE RESPONSIVE
   MINIMAL FLOATING MENU
========================================= */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 75px;
  }

  .container {
    width: calc(100% - 38px);
  }

  .section {
    padding: 75px 0;
  }

  .navbar {
    min-height: 72px;
  }

  .brand-logo {
    gap: 11px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 22px;
  }

  /* Hamburger button: no hover effect or animation */

  .menu-toggle {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 1003;
    flex-shrink: 0;
    border-radius: 8px;
    background: transparent;
  }

  .menu-toggle:hover {
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    flex-shrink: 0;
  }

  .nav-cta {
    display: none;
  }

  /* Minimal floating panel: no opening animation */

  .nav-links {
    position: fixed;
    top: 82px;
    right: 16px;
    left: auto;

    width: min(300px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100dvh - 100px);

    padding: 10px;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;

    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(24, 61, 48, 0.08);

    overflow-y: auto;
    overscroll-behavior: contain;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: none;
    transition: none;

    z-index: 1001;
  }

  /* Open state: appears immediately */

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-links li {
    width: 100%;
    border-bottom: none;
  }

  /* Simple menu links */

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 46px;
    padding: 11px 12px;

    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;

    color: var(--forest);
    background: transparent;

    border: 0;
    border-radius: 6px;

    transition: none;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--forest);
    background: var(--sage-light);
    border-color: transparent;
    transform: none;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* =========================================
     EXISTING MOBILE LAYOUT
  ========================================= */

  .hero {
    padding-top: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(47px, 11vw, 66px);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-visual {
    max-width: 470px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 12px 25px;
  }

  .hero-image-frame {
    height: 370px;
    border-radius: 180px 180px 15px 15px;
  }

  .floating-card-top {
    left: -4px;
    top: 45px;
  }

  .floating-card-bottom {
    right: -4px;
    bottom: 50px;
  }

  .floating-card {
    padding: 11px 13px;
  }

  .floating-icon {
    width: 32px;
    height: 32px;
  }

  .hero-bottom {
    margin-top: 20px;
    align-items: flex-start;
    gap: 15px;
  }

  .hero-bottom p {
    font-size: 8px;
    line-height: 1.9;
  }

  .scroll-link {
    flex-shrink: 0;
    font-size: 10px;
  }

  .section-heading {
    display: block;
    margin-bottom: 35px;
  }

  .section-heading h2,
  .about-content h2,
  .contact-info h2 {
    font-size: clamp(34px, 8vw, 45px);
  }

  .heading-description {
    margin-top: 17px;
    max-width: 460px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-card {
    min-height: 285px;
    padding: 20px 17px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
  }

  .service-card h3 {
    font-size: 19px;
  }

  .service-card p {
    font-size: 11px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-image,
  .project-large .project-image {
    height: 280px;
  }

  .about-grid-text-only {
    max-width: 100%;
  }

  .about-content > p:not(.eyebrow) {
    font-size: 12px;
  }

  .about-subheading {
    margin-top: 30px;
  }

  .skill-row {
    min-height: 50px;
    padding: 12px 20px;
    font-size: 14px;
  }

  

  .contact-banner {
    padding: 58px 22px;
    margin-bottom: 65px;
  }

  .contact-banner h2 {
    font-size: clamp(36px, 9vw, 49px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-inner > p {
    order: 3;
    flex-basis: 100%;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 430px) {
  .container {
    width: calc(100% - 30px);
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-buttons {
    align-items: stretch;
  }

  .hero-buttons .button {
    flex: 1 1 100%;
  }

  .hero-image-frame {
    height: 320px;
  }

  .floating-card strong {
    font-size: 10px;
  }

  .floating-card small {
    font-size: 8px;
  }

  .hero-bottom {
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card p {
    font-size: 12px;
  }

  .project-image,
  .project-large .project-image {
    height: 235px;
  }

  .contact-form {
    padding: 21px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .social-links {
    gap: 12px;
  }

  .social-links > span {
    flex-basis: 100%;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  /* Smaller floating menu on narrow phones */

  .nav-links {
    top: 76px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 90px);
    padding: 10px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* MOBILE MENU TOGGLE — HAMBURGER / X */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--border, #d8d8d8);
    border-radius: 10px;
    background: var(--card, #ffffff);
    cursor: pointer;
    box-shadow: none;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text, #222222);
    border-radius: 2px;
    transition: none;
}

/* Kapag bukas ang menu, magiging X */
.menu-toggle.open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* =========================================
   MODERN VISUAL REFRESH
========================================= */

:root {
  --forest: #173b32;
  --forest-dark: #102b25;
  --forest-light: #2c6652;
  --sage: #9bb6a1;
  --sage-light: #e3ece4;
  --cream: #f7f8f4;
  --cream-dark: #edf1ea;
  --text: #20362f;
  --muted: #737f78;
  --border: rgba(23, 59, 50, 0.12);
  --shadow: 0 22px 55px rgba(25, 54, 44, 0.1);
}

html {
  scroll-padding-top: 78px;
}

body {
  background: var(--cream);
  letter-spacing: -0.01em;
}

.header {
  background: rgba(247, 248, 244, 0.88);
  border-bottom-color: rgba(23, 59, 50, 0.07);
}

.navbar {
  min-height: 78px;
}

.brand-mark {
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(23, 59, 50, 0.15);
}

.nav-link {
  font-size: 13px;
}

.nav-cta,
.button {
  border-radius: 9px;
}

.nav-cta {
  padding: 13px 20px;
}

.hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(206, 225, 210, 0.7), transparent 33%),
    linear-gradient(180deg, #f8f9f5 0%, var(--cream) 100%);
}

.hero-grid {
  gap: clamp(42px, 7vw, 90px);
}

.hero h1 {
  letter-spacing: -3px;
}

.hero-description,
.heading-description,
.about-content > p:not(.eyebrow),
.contact-description {
  color: #6f7b73;
}

.hero-image-frame {
  border-radius: 190px 190px 22px 22px;
  box-shadow: 0 26px 65px rgba(24, 61, 48, 0.15);
}

.floating-card {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(24, 61, 48, 0.13);
}

.service-section,
.about-section {
  background: #eef2ec;
}

.section-heading {
  margin-bottom: 56px;
}

.service-grid {
  gap: 20px;
}

.service-card {
  min-height: 300px;
  padding: 30px 27px;
  border-radius: 16px;
  border-color: rgba(23, 59, 50, 0.08);
  box-shadow: 0 6px 22px rgba(24, 61, 48, 0.025);
}

.service-card:hover {
  box-shadow: 0 20px 44px rgba(24, 61, 48, 0.1);
}

.service-icon,
.detail-icon {
  border-radius: 14px;
}

.service-card-featured {
  background: linear-gradient(145deg, #173b32, #285c49);
}

.project-image {
  border-radius: 16px;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-info h3 {
  letter-spacing: -0.4px;
}

.project-arrow {
  border-color: rgba(23, 59, 50, 0.16);
}

.skills-list {
  border-color: #d5ded5;
  border-radius: 12px;
  overflow: hidden;
}

.skill-row {
  background: rgba(255, 255, 255, 0.55);
  border-color: #d5ded5;
}



.contact-banner {
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 159, 126, 0.27), transparent 30%),
    linear-gradient(135deg, #173b32, #102b25);
  box-shadow: 0 24px 60px rgba(16, 43, 34, 0.14);
}

.contact-form {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(24, 61, 48, 0.05);
}

.form-group input,
.form-group textarea,
.form-group select {
  border-radius: 9px;
  background: #fafbf8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #668d74;
  box-shadow: 0 0 0 4px rgba(102, 141, 116, 0.12);
}

.footer {
  background: #e9eee7;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .navbar {
    min-height: 72px;
  }

  .nav-links {
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(24, 61, 48, 0.15);
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-image-frame {
    box-shadow: 0 18px 45px rgba(24, 61, 48, 0.13);
  }

  .service-card {
    border-radius: 14px;
  }

  .contact-banner {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}

/* =========================================
   FINAL THEME DETAILS
========================================= */

.header {
  background: rgba(23, 59, 50, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.brand-mark {
  background: var(--sage-light);
  color: var(--forest);
}

.brand-name {
  color: var(--cream);
}

.brand-period {
  color: var(--sage);
}

.nav-link {
  color: #c7d5cc;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  background: var(--sage);
}

.nav-cta {
  background: var(--sage-light);
  color: var(--forest);
}

.nav-cta:hover {
  background: var(--white);
}

/* Keep the mobile menu consistent with the dark header theme. */
@media (max-width: 760px) {
  .nav-links {
    background: var(--forest-dark);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .nav-link,
  .nav-link:hover,
  .nav-link.active {
    color: var(--cream);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
  }

  .menu-toggle {
    background: var(--sage-light);
    border-color: var(--sage-light);
  }

  .menu-toggle span {
    background: var(--forest);
  }
}

/* Service cards fit their content without decorative icon blocks. */
.service-grid {
  align-items: start;
}

.service-icon {
  display: none;
}

.service-card {
  min-height: 0;
}

/* Floating back-to-top control. */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--forest-light);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  font-size: 22px;
  box-shadow: 0 10px 28px rgba(16, 43, 37, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-top:hover {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 43, 37, 0.18);
}

@media (max-width: 430px) {
  .back-top {
    right: 15px;
    bottom: 15px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 20px;
  }
}

/* Refined monogram logo */
.brand-mark {
  position: relative;
  width: 49px;
  height: 49px;
  border: 1px solid rgba(23, 59, 50, 0.12);
  border-radius: 15px 6px 15px 6px;
  background: linear-gradient(145deg, #f0f5ed, var(--sage-light));
  color: var(--forest);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 8px 20px rgba(16, 43, 37, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-light);
}

.footer-brand .brand-mark {
  width: 43px;
  height: 43px;
}

@media (max-width: 430px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }
}

/* Text-only LK Portfolio wordmark */
.brand-logo {
  gap: 0;
}

.brand-name {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand-period {
  color: var(--sage);
  font-weight: 500;
  letter-spacing: -0.4px;
}

  .footer-brand .brand-name {
  font-size: 20px;
  color: var(--forest);
}


@media (max-width: 430px) {
  .brand-name {
    font-size: 19px;
  }
}

/* Keep key icons and browser-native controls consistent across mobile platforms. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.detail-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23173b32' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.icon-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-arrow-down {
  vertical-align: -0.2em;
}

.icon-arrow-up {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Floating skill tags around the hero image. */
.floating-skill {
  position: absolute;
  z-index: 3;
  padding: 9px 14px;
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  box-shadow: 0 12px 30px rgba(24, 61, 48, 0.13);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  animation: float 4.5s ease-in-out infinite;
}

.skill-html {
  top: 65px;
  left: -12px;
}

.skill-css {
  top: 125px;
  left: -24px;
  animation-delay: -1s;
}

.skill-javascript {
  top: 185px;
  left: -5px;
  animation-delay: -2s;
}

.skill-python {
  top: 90px;
  right: -15px;
  animation-delay: -1.5s;
}

.skill-latex {
  right: -20px;
  bottom: 112px;
  animation-delay: -2.5s;
}

.skill-autocad {
  right: -10px;
  bottom: 52px;
  animation-delay: -0.5s;
}

/* Keep live website previews contained within their project thumbnails. */
.project-external-image {
  isolation: isolate;
}

.project-site-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  border: 0;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
}

/* HOME HERO — calm, connected skills orbit */
.hero {
  min-height: calc(100svh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 34px;
  padding-bottom: 24px;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(23, 59, 50, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 59, 50, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 43%, rgba(227, 236, 228, 0.85), transparent 57%);
  background-size: 48px 48px, 48px 48px, auto;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  flex: 1;
  min-height: min(680px, calc(100svh - 180px));
  gap: 0;
}

.hero-content {
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-content .eyebrow {
  justify-content: center;
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 18px;
    font-size: clamp(44px, 5.5vw, 66px);
  letter-spacing: -3px;
}

.hero-description {
  max-width: none;
  margin: 0 auto 25px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.hero-buttons,
.hero-skills {
  justify-content: center;
}

.hero-skills {
  margin-top: 25px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  pointer-events: none;
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-network path {
  fill: none;
  stroke: rgba(23, 59, 50, 0.22);
  stroke-width: 1.1;
  stroke-dasharray: 3 7;
  vector-effect: non-scaling-stroke;
}

.floating-skill {
  animation-duration: 6s;
  box-shadow: 0 10px 25px rgba(24, 61, 48, 0.1);
}

.skill-html {
  top: 23%;
  left: 6%;
}

.skill-css {
  top: 7%;
  left: 28%;
}

 .skill-javascript {
  top: 7%;
  left: 17%;
  right: auto;
}

.skill-python {
  top: 65%;
  right: 5%;
}

.skill-latex {
  right: 25%;
  bottom: 8%;
}

.skill-autocad {
  left: 17%;
  bottom: 12%;
}

.network-node {
  display: none;
}

.node-one {
  top: 24%;
  left: 20%;
}

.node-two {
  top: 14%;
  right: 22%;
}

.node-three {
  right: 23%;
  bottom: 20%;
}

.node-four {
  left: 39%;
  bottom: 12%;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 17px;
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - 72px);
    padding-top: 18px;
    padding-bottom: 18px;
    background-color: var(--cream);
    background-image:
      linear-gradient(rgba(23, 59, 50, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(23, 59, 50, 0.045) 1px, transparent 1px),
      radial-gradient(ellipse at 50% 43%, rgba(227, 236, 228, 0.85), transparent 57%);
    background-size: 48px 48px, 48px 48px, auto;
  }

  .hero-grid {
    min-height: 600px;
  }

  .hero-content {
    padding: 55px 4px 35px;
  }

    .hero h1 {
    font-size: clamp(38px, 8vw, 52px);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-skills {
    gap: 7px;
    margin-top: 20px;
  }

  .hero-skills span {
    padding: 6px 9px;
    font-size: 9px;
  }

  .hero-visual {
    z-index: 3;
  }

  .hero-network {
    opacity: 0.55;
  }

  .skill-javascript {
    right: 3%;
    bottom: 24%;
  }

  .skill-html {
    top: 4%;
    left: 3%;
  }

  .skill-css {
    top: 4%;
    left: auto;
    right: 4%;
  }

  .skill-javascript {
    top: 4%;
    right: auto;
    bottom: auto;
    left: 50%;
    translate: -50% 0;
  }

  .skill-python {
    top: auto;
    right: auto;
    left: 1%;
    bottom: 24%;
  }

  .skill-latex {
    right: auto;
    left: 4%;
    bottom: 7%;
  }

  .skill-autocad {
    right: 4%;
    left: auto;
    bottom: 7%;
  }

  .network-node {
    display: none;
  }

  .hero-bottom {
    align-items: center;
    padding-top: 13px;
  }
}

@media (max-width: 430px) {
  .hero-grid {
    min-height: 570px;
  }

  .hero-content {
    padding: 62px 0 42px;
  }

    .hero h1 {
    font-size: 35px;
  }

  .hero-description {
    font-size: 11px;
  }

  .skill-html,
  .skill-css {
    top: 3%;
  }

  .skill-html {
    left: 0;
  }

  .skill-css {
    right: 0;
  }

  .skill-python {
    bottom: 18%;
  }

  .skill-javascript {
    top: 4%;
    right: auto;
    bottom: auto;
    left: 50%;
    translate: -50% 0;
  }

  .hero-bottom {
    flex-direction: row;
    align-items: center;
  }

  .hero-bottom p {
    max-width: 190px;
  }
}

/* Subtle orbit accents to give the hero a more intentional, tech-inspired finish. */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(44, 102, 82, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  width: min(62vw, 650px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(227, 236, 228, 0.28), transparent 68%);
}

.hero-visual::after {
  width: min(42vw, 440px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  border-color: rgba(44, 102, 82, 0.13);
}

.floating-skill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: none;
  padding: 8px 12px;
  line-height: 1.2;
}

.skill-javascript,
.skill-autocad {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-visual::before {
    width: min(92vw, 560px);
  }

  .hero-visual::after {
    width: min(68vw, 400px);
  }

  .floating-skill {
    padding: 7px 10px;
    font-size: 9px;
  }
}

/* Gently fade the home hero as it scrolls out toward Services. */
.hero {
  opacity: var(--hero-opacity, 1);
  transform: var(--hero-transform, none);
  filter: blur(var(--hero-blur, 0px));
  will-change: opacity, transform, filter;
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Minimal hero actions with looping underlines sized to the label text. */
.hero-buttons .button {
  position: relative;
  flex: 0 0 auto;
  width: fit-content;
  overflow: visible;
  min-height: 0;
  gap: 5px;
  padding: 8px 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  animation: none;
}

.hero-buttons .button-label {
  position: relative;
  font-size: inherit;
  transition: none;
}

.hero-buttons .button-label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-button-underline 2.4s ease-in-out infinite;
  pointer-events: none;
}

.hero-buttons .button-primary {
  color: var(--forest-light);
}

.hero-buttons .button-outline {
  color: #789778;
  animation: none;
}

.hero-buttons .button-outline .button-label::after {
  animation-delay: 0.6s;
}

.hero-buttons .button:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: brightness(1.12);
}

.hero-buttons .button:hover .button-label {
  transform: none;
}

.hero-buttons .button:hover > span:not(.button-label) {
  transform: translate(3px, -2px);
}

@keyframes hero-button-underline {
  0%, 100% {
    transform: scaleX(0);
  }

  50% {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-buttons .button-label::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* Contact banner message accents */
.contact-banner h2 em {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.contact-banner h2 em::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 68%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #b7c9b1 20%, #dce9d8 80%, transparent);
  transform: translateX(-50%);
}

.contact-banner-text {
  max-width: 470px;
}

/* Decorative background treatment for the contact banner. */
.contact-banner {
  isolation: isolate;
}

.contact-banner::before,
.contact-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(220, 233, 216, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.contact-banner::before {
  width: min(52vw, 560px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 35px rgba(220, 233, 216, 0.025),
              0 0 0 75px rgba(220, 233, 216, 0.02);
}

.contact-banner::after {
  width: 220px;
  height: 220px;
  top: -115px;
  right: 8%;
  background-image: radial-gradient(rgba(220, 233, 216, 0.42) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 0;
  border-radius: 0;
  opacity: 0.45;
  mask-image: radial-gradient(circle, #000 25%, transparent 72%);
}

@media (max-width: 600px) {
  .contact-banner::before {
    width: 92vw;
  }

  .contact-banner::after {
    right: -65px;
  }
}

/* LK logo inspired by the reference mark. */
.brand-logo {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 54px;
}

.brand-logo .brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: none;
}

.brand-logo .brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px 2px 1px;
  border: 1.5px solid var(--sage);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.brand-logo .brand-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.brand-caption {
  color: var(--sage-light);
  font-size: 5px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.65px;
  text-align: center;
}

.brand-logo:hover .brand-mark {
  background: transparent;
  transform: none;
}

.footer-brand .brand-mark {
  width: 39px;
  height: 36px;
  color: var(--forest);
}

.footer-brand .brand-caption {
  color: var(--forest);
}

@media (max-width: 430px) {
  .brand-logo {
    min-width: 50px;
  }
}

/* Keep each main section filling the viewport so adjacent backgrounds don't peek through. */
.service-section,
.work-section,
.about-section,
.contact-section {
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  padding-top: 68px;
}

@media (max-width: 1000px) {
  .service-section,
  .work-section,
  .about-section,
  .contact-section {
    padding-top: 58px;
  }
}

@media (max-width: 760px) {
  .service-section,
  .work-section,
  .about-section,
  .contact-section {
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    padding-top: 48px;
  }
}

/* Slowly highlight each skill in sequence without requiring interaction. */
.skill-row {
  animation: skill-highlight 7s ease-in-out infinite;
}

.skill-row:nth-child(2) { animation-delay: 1.167s; }
.skill-row:nth-child(3) { animation-delay: 2.333s; }
.skill-row:nth-child(4) { animation-delay: 3.5s; }
.skill-row:nth-child(5) { animation-delay: 4.667s; }
.skill-row:nth-child(6) { animation-delay: 5.833s; }

@keyframes skill-highlight {
  0%, 100% {
    background: rgba(255, 255, 255, 0.55);
    color: #77746e;
    transform: translateX(0);
    box-shadow: inset 0 0 0 0 transparent;
  }

  12%, 22% {
    background: #c5ddc8;
    color: var(--forest-dark);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 var(--forest-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-row {
    animation: none;
  }
}

/* Soft green glow for the Live Projects indicator. */
.project-note .status-dot {
  background: #69c98a;
  animation: live-project-glow 1.8s ease-in-out infinite;
}

@keyframes live-project-glow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(105, 201, 138, 0.2),
                0 0 7px 2px rgba(105, 201, 138, 0.55);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(105, 201, 138, 0.08),
                0 0 12px 4px rgba(105, 201, 138, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-note .status-dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(105, 201, 138, 0.2),
                0 0 8px 2px rgba(105, 201, 138, 0.65);
  }
}





